package com.dd.cloud.user.entity.phar;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Lx
 * @version 1.0
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "药房管理人员表")
public class PharmacyUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 药房管理人员表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 药房id
     */
    @Column(comment = "药房id")
    private Integer pharId;

    /**
     * 手机号
     */
    @Column(length = 20, comment = "手机号")
    private String phone;

    /**
     * 管理员密码
     */
    @Column(length = 64, comment = "管理员密码")
    private String password;

    /**
     * 密码盐值
     */
    @Column(length = 64, comment = "密码盐值")
    private String salt;

    /**
     * 管理员昵称
     */
    @Column(length = 20, comment = "管理员昵称")
    private String nickName;

    /**
     * 邮箱
     */
    @Column(length = 64, comment = "邮箱")
    private String email;

    /**
     * 状态 1正常 -1删除
     */
    @Column(comment = "状态 1正常 -1删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间", defaultValue = "now()")
    private LocalDateTime createDate;

    /**
     * 创建人id
     */
    @Column(comment = "创建人id")
    private Integer createId;

    /**
     * 创建人名字
     */
    @Column(length = 20, comment = "创建人名字")
    private String createName;
}
